<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
	<h1 id="t2"name='s1'>这是标题</h1>
	<p name='s1'>这是段落1</p>
	<p>这是段落2</p>
	<p>这是段落3</p>
	<div id="t1">
	这是一个div盒子！
	</div>
	</body>
	<script type="text/javascript">
		var test2=document.getElementById('t1');
		for(i=0;i<rest2.length;i++){
			document.write(test2[i].value);
		}
	</script>
</html>
